FROM swr.cn-east-3.myhuaweicloud.com/woody-public/apache/skywalking-java-agent:8.13.0-java8

MAINTAINER from shwoody.com by wenshun.chen (chenwenshun@shwoody.com)

ENV SERVICE_NAME="wd-aggregate"
ENV MODULE="wd-aggregate-app"
ENV JAR="start.jar"

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

RUN mkdir -p /opt/projects/yami-b2b2c
RUN mkdir /app
COPY ./$MODULE/target/$JAR /app
ENV TZ=Asia/Shanghai
WORKDIR /app

EXPOSE 8080


RUN /bin/cp /skywalking/agent/optional-plugins/apm-trace-ignore-plugin-8.13.0.jar /skywalking/agent/plugins/

ENV SW_AGENT_COLLECTOR_BACKEND_SERVICES=10.247.83.80:11800

ENTRYPOINT java $JAVA_OPTS -jar -XX:+UseContainerSupport -XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=75.0 -Dskywalking.trace.ignore_path=GET:/actuator/health,Redisson/**,HttpAsyncClient/local,Mysql/JDBI/Connection/close -Dskywalking.agent.service_name=wd-aggregate::$PAAS_APP_NAME -Dspring.profiles.active=$SPRING_PROFILE $JAR


